<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>::KBCSS::</title>
<meta name="keywords" content="" />
<meta name="description" content="" />

<script type="text/javascript" src="js/ajaxformsemail.js"></script>
  
  <script type="text/javascript" src="js/register.js"></script>
  <script type="text/javascript" src="js/password.js"></script>
  
 <meta http-equiv="Content-Type" content="text/html">
   <script language="javaScript" type="text/javascript" src="js/calendar.js"></script>
<link href="css/calendar.css" rel="stylesheet" type="text/css">
 <link rel="stylesheet" type="text/css" href="css/login.css" /> 

<link href="css/styles.css" rel="stylesheet" type="text/css" media="screen" />


<script type="text/javascript">
 function validate(hh)
           {  
                    var uname=hh.phone.value;
					var invalid=/\W/; 
					    if(uname=="")
                         { 
                             alert("Enter phone number");
                             hh.phone.focus();
                             return false;
                         }
                        else if((uname.length<9)||(uname.length>11))
                        {
                             alert("Enter valid phone number");
                              hh.phone.focus();
                             return false;
                         }

				        else if(invalid.test(uname))
                        {
                             alert("Enter Numbers only");
                             login.uname.focus();
                             return false;
                         }
						
         }
		 function allowNumaric(hh)
		 {
			  var charcode=(hh.which)?hh.which:hh.keycode;
			  if(charcode>47&&charcode<58 || charcode>95&&charcode<104)
				  return true;
			  else 
				  return false;
		 }
		 function allowNumaricc(hh)
		 {
			  var charcode=(hh.which)?hh.which:hh.keycode;
			  if(charcode>47&&charcode<58 || charcode>95&&charcode<104)
				  return false;
			  else 
				  return true;
		 }


</script>


</head>
<body onload="setFocus('uname')">
<div id="mainbg">
<!-- header begins -->
<div id="header">
	<div id="buttons">
		<div class="menu_width">
		<ul>
			<li><a href="index.jsp" title="" class="active">Home</a></li>
			
			
			
			
		</ul>
		</div>
	</div>
	<div id="logo">
		<a href="#">Knowledge Based Community Sharing System</a>
		<h5>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--Interaction With Industry</h5>
		
	</div>
<!-- header ends -->
<!-- content begins -->
<div id="main">
<div id="main_top"></div>
<div id="content_bg">
  <div id="content"></div><form name="hh" method="post" action="signup.jsp" onsubmit="return validate(hh)">
          	<div id="left">
          	  <h1><center>
          	    <p>Student/Research Scholars Registration   <%=request.getParameter("message")!=null?"-"+request.getParameter("message"):"" %>         	  </p>
          	  </center>
          	  </h1>
          	  <table width="100%" border="0" cellpadding="3" cellspacing="3">
          	    <tr>
          	      <td width="29%"><p><font color="red" >*</font> First Name</p>
       	          <p>
       	            <input type="text" name="fname" required="required" onKeydown=" return allowNumaricc(event)"/>
       	          </p></td>
          	      <td width="30%"><p>Middel Name</p>
       	          <p>
       	            <input type="text" name="mname"  id="mname" required="required" onKeydown=" return allowNumaricc(event)"/>
       	          </p></td>
          	      <td width="41%"><p><font color="red" >*</font>  Last Name</p>
       	          <p>
       	            <input type="text" name="lname" required="required" id="lname" onKeydown=" return allowNumaricc(event)"/>
       	          </p></td>
       	        </tr>
       	      </table>
          	  <table width="86%" border="0" cellpadding="5" cellspacing="5">
          	    <tr>
          	      <td width="18%">&nbsp;</td>
          	      <td width="44%"><font color="red" ></font> You are</td>
          	      <td width="4%">:</td>
          	      <td width="34%"><select name="uare" onkeyup=" if(this.className=='Highlight') {this.className='none'; }" id="uare" value="" onblur="setAttr(this.name,this.value)">
          	        <option value="">--Select--</option>
          	        <option value="Student">Student</option>
          	        <option value="Research Scholar">Research Scholar</option>
          	         </select></td>
       	        </tr>
          	    <tr>
          	      <td>&nbsp;</td>
          	      <td><font color="red" >*</font>  Gender</td>
          	      <td>&nbsp;</td>
          	      <td><input type="radio" name="gender" " id="gender" value="male" checked/>
          	        Male&nbsp;&nbsp;
                    <input type="radio" name="gender" class="gender" id="gender" value="female"/>
                  Female</td>
       	        </tr>
          	    <tr>
          	      <td>&nbsp;</td>
          	      <td><font color="red" >*</font> College</td>
          	      <td>:</td>
          	      <td><input type="text" name="col" required="required" id="col" onKeydown=" return allowNumaricc(event)"/></td>
       	        </tr>
          	    <tr>
          	      <td>&nbsp;</td>
          	      <td><font color="red" >*</font> City</td>
          	      <td>:</td>
          	      <td><input type="text" name="city" required="required" id="city" onKeydown=" return allowNumaricc(event)"/></td>
       	        </tr>
          	    <tr>
          	      <td>&nbsp;</td>
          	      <td><font color="red" >*</font> Email</td>
          	      <td>:</td>
          	      <td><input type="email" name="email" required="required" id="email" /></td>
       	        </tr>
          	    <tr>
          	      <td>&nbsp;</td>
          	      <td><font color="red" >*</font>&nbsp;&nbsp;Phone</td>
          	      <td>:</td>
          	      <td><input type="text" name="phone" id="phone" required="required" onKeydown=" return allowNumaric(event)"/></td>
       	        </tr>
          	    <tr>
          	      <td>&nbsp;</td>
          	      <td><font color="red" >*</font> UserName</td>
          	      <td>:</td>
          	      <td><input type="text" name="uname" required="required" id="uname" onKeydown=" return allowNumaricc(event)"/></td>
       	        </tr>
          	    <tr>
          	      <td>&nbsp;</td>
          	      <td><font color="red" >*</font> Password</td>
          	      <td>:</td>
          	      <td><input type="password" name="pswd" required="required" id="pswd" /></td>
       	        </tr>
				<!--
          	    <tr>
          	      <td>&nbsp;</td>
          	      <td><font color="red" >*</font> Conform Password</td>
          	      <td>:</td>
          	      <td><input type="password" name="cpswd" required="required" id="cpswd" /></td>
       	        </tr>
				-->
                
                <%@page import="java.sql.*" %>
<%@ page import="com.hline.kbcss.MyDriver"%>
<%
Statement st=MyDriver.getConnection("READ");
ResultSet rs=st.executeQuery("select fname from fields");%>
                
          	    <tr>
          	      <td>&nbsp;</td>
          	      <td><font color="red" >*</font> Intrested In</td>
          	      <td>:</td></tr>
          	      <%while(rs.next()){%><tr align="left"><td></td><td>
          	        <input name="likes" type="checkbox" id="likes" value="<%=rs.getString("fname")%>" />
<%=rs.getString("fname")%></td><td></td></tr><%}%>
       	        
          	    
          	    <tr>
          	      <td>&nbsp;</td>
          	      <td colspan=3><font color="red" >*</font>
          	        <input name="terms" type="checkbox" id="cpswd2" value="" required="required" />
          	      I agree the Terms &amp; Conditions</td>
          	    
       	        </tr>
          	    <tr>
          	      <td>&nbsp;</td>
          	      <td>&nbsp;</td>
          	      <td>&nbsp;</td>
          	      <td><input type="submit" value="Register"/>
       	          <input name="Reset" type="reset" value="Clear" /></td>
       	        </tr>
       	      </table>
          	  <p>&nbsp;</p>
   	    </div>
    </div></form><div id="main_bot"></div>
</div>
</div>
<!-- content ends -->
<!-- footer begins -->
<div id="footer">
  <p>Copyright  2011. Designed by <a href="#" title="Flash Templates">Knowledge Based Community Sharing System</a></p>
		<p><a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a> </div>
<!-- footer ends -->

</div>
</div>
</body>
</html>
